// packageF/others/customerCenter/component/searchRecord.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    info: {
      type: Array,
      value: []
    },
    set: {
      type: Object,
      value: {}
    },
    open_browse_footprint:{
      type:Boolean
    },
    open_user_info_button:{
      tyoe:Boolean
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    tapUserDetail(e){
      let uid = e.currentTarget.dataset.uid;
      wx.navigateTo({
        url: '/packageF/others/customerCenter/customerCenterUser/customerCenterUser?id='+uid,
      })
    },
    telCall(e) {
      let phone = e.currentTarget.dataset.phone;
      wx.makePhoneCall({
        phoneNumber: phone
      })
    },
    tapRecord(e) {
      let uid = e.currentTarget.dataset.uid;
      wx.navigateTo({
        url: '/packageF/others/customerCenter/customerCenterRecord/customerCenterRecord?id=' + uid,
      })
    },
    onCopyWechat(e) {
      let wechat = e.currentTarget.dataset.wechat;
      wx.setClipboardData({
        data: wechat,
        success: () => {
          wx.hideToast()
          wx.showModal({
            content: '复制微信号成功',
            showCancel: false
          })
        }
      })
    }
  }
})